package com.winning.zjjh.controller;

import com.winning.zjjh.ws.MchisInterface;
import com.winning.zjjh.ws.MchisInterface_Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author z_dd@winning.com.cn
 * @date 2019/4/2 10:13
 */
@RestController
public class TestController {

    @RequestMapping("test1")
    public String test1() {
        MchisInterface_Service mchisInterface_service = new MchisInterface_Service();
        MchisInterface mchisInterfaceImplPort = mchisInterface_service.getMchisInterfaceImplPort();
        String s = mchisInterfaceImplPort.callFun("a6918442-b577-43f3-bc4e-a69b45a39185",
                "4101",
                "01",
                "<![CDATA[<Request><Header><ReqTime>2019-04-02 09:53:01</ReqTime><ReqTraceNo>7f847ad1-4051-48fc-beeb-fad4c757bf4b</ReqTraceNo><ReqUserId>PHMCHIS_PJ</ReqUserId></Header><Body><ACCOUCHEUNITCODE/><ACCOUCHEUNITNAME/><AGE/><BBDATE>2018-03-19</BBDATE><BBPSIGNATURECODE>1</BBPSIGNATURECODE><BBPSIGNATURENAME>系统管理员</BBPSIGNATURENAME><BBUNITCODE> </BBUNITCODE><BBUNITNAME>中国</BBUNITNAME><BIRTHDAY>1900-01-01</BIRTHDAY><CABUILDING>-</CABUILDING><CACITY>-</CACITY><CACITYNAME>-</CACITYNAME><CACOMMUNITY>-</CACOMMUNITY><CACOMMUNITYNAME>-</CACOMMUNITYNAME><CACOUNTY>-</CACOUNTY><CACOUNTYNAME>-</CACOUNTYNAME><CADCODE>330726</CADCODE><CADDRESS>-</CADDRESS><CADNAME>浦江县</CADNAME><CAPROVINCE>-</CAPROVINCE><CAPROVINCENAME>-</CAPROVINCENAME><CASTREET>-</CASTREET><CASTREETNAME>-</CASTREETNAME><CITYCODE>330700</CITYCODE><CITYNAME>金华市</CITYNAME><CONTACTPHONE>-</CONTACTPHONE><CREATETIME>2018-03-19 15:30:41</CREATETIME><CREATEUNITCODE> </CREATEUNITCODE><CREATEUNITNAME> </CREATEUNITNAME><CREATORCODE>1</CREATORCODE><CREATORNAME>系统管理员</CREATORNAME><EXPECTEDDATE>2018-10-08</EXPECTEDDATE><FAMILYECONOMIC/><FAMILYECONOMICNAME>-</FAMILYECONOMICNAME><FILESUNITCODE>67385907133072611B1001</FILESUNITCODE><FILESUNITNAME>浦阳街道社区卫生服务中心直管</FILESUNITNAME><FOLATETAKE/><GAGED>0</GAGED><GAGEW>11</GAGEW><HAGE/><HAVEBOY>0</HAVEBOY><HAVEGIRL>0</HAVEGIRL><HBIRTHDAY/><HCABUILDING/><HCACITY/><HCACITYNAME/><HCACOMMUNITY/><HCACOMMUNITYNAME/><HCACOUNTY/><HCACOUNTYNAME/><HCADDRESS/><HCAPROVINCE/><HCAPROVINCENAME/><HCASTREET/><HCASTREETNAME/><HCONTACTPHONE/><HEALTHNUMBER>BJ002</HEALTHNUMBER><HIDCATEGORIES>07</HIDCATEGORIES><HIDCATEGORIESNAME>其他证件</HIDCATEGORIESNAME><HIDNUMBER/><HIGHRISKFACTORS/><HNABUILDING/><HNACITY/><HNACITYNAME/><HNACOMMUNITY/><HNACOMMUNITYNAME/><HNACOUNTY/><HNACOUNTYNAME/><HNADDRESS/><HNAME/><HNAPROVINCE/><HNAPROVINCENAME/><HNASTREET/><HNASTREETNAME/><HNATIONAL/><HNATIONALITY>CHN</HNATIONALITY><HNATIONALITYNAME>中国</HNATIONALITYNAME><HNATIONALNAME/><HPROFESSIONAL>09</HPROFESSIONAL><HPROFESSIONALNAME>其他从业人员</HPROFESSIONALNAME><HRGRADE>-</HRGRADE><HWORKUNIT/><ID>156AB212EB2AC098CE5F75603342FE25</ID><IDCATEGORIES>01</IDCATEGORIES><IDCATEGORIESNAME>居民身份证</IDCATEGORIESNAME><IDNUMBER>410123199102110225</IDNUMBER><ISREMOTE>-</ISREMOTE><LMPERIOD>2018-01-01</LMPERIOD><MARITAL>5</MARITAL><MEDICALTYPE/><MEDICALTYPENAME/><MEDICARE/><MEDUCATION>6</MEDUCATION><MEDUCATIONNAME>不详</MEDUCATIONNAME><MOTHERNAME>测试女人180319</MOTHERNAME><NABUILDING>-</NABUILDING><NACITY>3307</NACITY><NACITYNAME>金华市</NACITYNAME><NACOMMUNITY>330726001011</NACOMMUNITY><NACOMMUNITYNAME>浙江省金华市浦江县浦阳街道人民西路社区</NACOMMUNITYNAME><NACOUNTY>330726</NACOUNTY><NACOUNTYNAME>浦江县</NACOUNTYNAME><NADDRESS>人民西路西山67号</NADDRESS><NAPROVINCE>33</NAPROVINCE><NAPROVINCENAME>浙江省</NAPROVINCENAME><NASTREET>-</NASTREET><NASTREETNAME>-</NASTREETNAME><NATIONAL/><NATIONALITY>CHN</NATIONALITY><NATIONALITYNAME>中国</NATIONALITYNAME><NATIONALNAME/><NATIONNATURE>1</NATIONNATURE><NATIONNATURENAME>本县（市）</NATIONNATURENAME><OPERATETIME>2018-08-27 16:01:57</OPERATETIME><OPERATEUNITCODE/><OPERATEUNITNAME/><OPERATORCODE>1</OPERATORCODE><OPERATORNAME>系统管理员</OPERATORNAME><PABUILDING>-</PABUILDING><PACITY>-</PACITY><PACITYNAME>-</PACITYNAME><PACOMMUNITY>-</PACOMMUNITY><PACOMMUNITYNAME>-</PACOMMUNITYNAME><PACOUNTY>-</PACOUNTY><PACOUNTYNAME>-</PACOUNTYNAME><PADDRESS>-</PADDRESS><PAPROVINCE>-</PAPROVINCE><PAPROVINCENAME>-</PAPROVINCENAME><PASTREET>-</PASTREET><PASTREETNAME>-</PASTREETNAME><PROFESSIONAL>01</PROFESSIONAL><PROFESSIONALNAME>国家机关，党群组织，企业，事业单位负责人</PROFESSIONALNAME><REMOTESIGN/><REMOTESIGNDATE>2018-03-19</REMOTESIGNDATE><SERVICEUNITCODE> </SERVICEUNITCODE><SERVICEUNITNAME>中国</SERVICEUNITNAME><SINGLEPARENTFLAG/><WORKUNIT>妇保所</WORKUNIT></Body></Request>]]>");
        return s;
    }
    @RequestMapping("test2")
    public String test2() {
        MchisInterface_Service mchisInterface_service = new MchisInterface_Service();
        MchisInterface mchisInterfaceImplPort = mchisInterface_service.getMchisInterfaceImplPort();
        System.out.println("<![CDATA[--------------]]>");
        String s = mchisInterfaceImplPort.callFun("a6918442-b577-43f3-bc4e-a69b45a39185",
                "4101",
                "01",
                "<Request><Header><ReqTime>2019-04-02 09:53:01</ReqTime><ReqTraceNo>7f847ad1-4051-48fc-beeb-fad4c757bf4b</ReqTraceNo><ReqUserId>PHMCHIS_PJ</ReqUserId></Header><Body><ACCOUCHEUNITCODE/><ACCOUCHEUNITNAME/><AGE/><BBDATE>2018-03-19</BBDATE><BBPSIGNATURECODE>1</BBPSIGNATURECODE><BBPSIGNATURENAME>系统管理员</BBPSIGNATURENAME><BBUNITCODE> </BBUNITCODE><BBUNITNAME>中国</BBUNITNAME><BIRTHDAY>1900-01-01</BIRTHDAY><CABUILDING>-</CABUILDING><CACITY>-</CACITY><CACITYNAME>-</CACITYNAME><CACOMMUNITY>-</CACOMMUNITY><CACOMMUNITYNAME>-</CACOMMUNITYNAME><CACOUNTY>-</CACOUNTY><CACOUNTYNAME>-</CACOUNTYNAME><CADCODE>330726</CADCODE><CADDRESS>-</CADDRESS><CADNAME>浦江县</CADNAME><CAPROVINCE>-</CAPROVINCE><CAPROVINCENAME>-</CAPROVINCENAME><CASTREET>-</CASTREET><CASTREETNAME>-</CASTREETNAME><CITYCODE>330700</CITYCODE><CITYNAME>金华市</CITYNAME><CONTACTPHONE>-</CONTACTPHONE><CREATETIME>2018-03-19 15:30:41</CREATETIME><CREATEUNITCODE> </CREATEUNITCODE><CREATEUNITNAME> </CREATEUNITNAME><CREATORCODE>1</CREATORCODE><CREATORNAME>系统管理员</CREATORNAME><EXPECTEDDATE>2018-10-08</EXPECTEDDATE><FAMILYECONOMIC/><FAMILYECONOMICNAME>-</FAMILYECONOMICNAME><FILESUNITCODE>67385907133072611B1001</FILESUNITCODE><FILESUNITNAME>浦阳街道社区卫生服务中心直管</FILESUNITNAME><FOLATETAKE/><GAGED>0</GAGED><GAGEW>11</GAGEW><HAGE/><HAVEBOY>0</HAVEBOY><HAVEGIRL>0</HAVEGIRL><HBIRTHDAY/><HCABUILDING/><HCACITY/><HCACITYNAME/><HCACOMMUNITY/><HCACOMMUNITYNAME/><HCACOUNTY/><HCACOUNTYNAME/><HCADDRESS/><HCAPROVINCE/><HCAPROVINCENAME/><HCASTREET/><HCASTREETNAME/><HCONTACTPHONE/><HEALTHNUMBER>BJ002</HEALTHNUMBER><HIDCATEGORIES>07</HIDCATEGORIES><HIDCATEGORIESNAME>其他证件</HIDCATEGORIESNAME><HIDNUMBER/><HIGHRISKFACTORS/><HNABUILDING/><HNACITY/><HNACITYNAME/><HNACOMMUNITY/><HNACOMMUNITYNAME/><HNACOUNTY/><HNACOUNTYNAME/><HNADDRESS/><HNAME/><HNAPROVINCE/><HNAPROVINCENAME/><HNASTREET/><HNASTREETNAME/><HNATIONAL/><HNATIONALITY>CHN</HNATIONALITY><HNATIONALITYNAME>中国</HNATIONALITYNAME><HNATIONALNAME/><HPROFESSIONAL>09</HPROFESSIONAL><HPROFESSIONALNAME>其他从业人员</HPROFESSIONALNAME><HRGRADE>-</HRGRADE><HWORKUNIT/><ID>156AXX12EB2AC098CE5F75603342FE25</ID><IDCATEGORIES>01</IDCATEGORIES><IDCATEGORIESNAME>居民身份证</IDCATEGORIESNAME><IDNUMBER>410123199102110225</IDNUMBER><ISREMOTE>-</ISREMOTE><LMPERIOD>2018-01-01</LMPERIOD><MARITAL>5</MARITAL><MEDICALTYPE/><MEDICALTYPENAME/><MEDICARE/><MEDUCATION>6</MEDUCATION><MEDUCATIONNAME>不详</MEDUCATIONNAME><MOTHERNAME>测试女人180319</MOTHERNAME><NABUILDING>-</NABUILDING><NACITY>3307</NACITY><NACITYNAME>金华市</NACITYNAME><NACOMMUNITY>330726001011</NACOMMUNITY><NACOMMUNITYNAME>浙江省金华市浦江县浦阳街道人民西路社区</NACOMMUNITYNAME><NACOUNTY>330726</NACOUNTY><NACOUNTYNAME>浦江县</NACOUNTYNAME><NADDRESS>人民西路西山67号</NADDRESS><NAPROVINCE>33</NAPROVINCE><NAPROVINCENAME>浙江省</NAPROVINCENAME><NASTREET>-</NASTREET><NASTREETNAME>-</NASTREETNAME><NATIONAL/><NATIONALITY>CHN</NATIONALITY><NATIONALITYNAME>中国</NATIONALITYNAME><NATIONALNAME/><NATIONNATURE>1</NATIONNATURE><NATIONNATURENAME>本县（市）</NATIONNATURENAME><OPERATETIME>2018-08-27 16:01:57</OPERATETIME><OPERATEUNITCODE/><OPERATEUNITNAME/><OPERATORCODE>1</OPERATORCODE><OPERATORNAME>系统管理员</OPERATORNAME><PABUILDING>-</PABUILDING><PACITY>-</PACITY><PACITYNAME>-</PACITYNAME><PACOMMUNITY>-</PACOMMUNITY><PACOMMUNITYNAME>-</PACOMMUNITYNAME><PACOUNTY>-</PACOUNTY><PACOUNTYNAME>-</PACOUNTYNAME><PADDRESS>-</PADDRESS><PAPROVINCE>-</PAPROVINCE><PAPROVINCENAME>-</PAPROVINCENAME><PASTREET>-</PASTREET><PASTREETNAME>-</PASTREETNAME><PROFESSIONAL>01</PROFESSIONAL><PROFESSIONALNAME>国家机关，党群组织，企业，事业单位负责人</PROFESSIONALNAME><REMOTESIGN/><REMOTESIGNDATE>2018-03-19</REMOTESIGNDATE><SERVICEUNITCODE> </SERVICEUNITCODE><SERVICEUNITNAME>中国</SERVICEUNITNAME><SINGLEPARENTFLAG/><WORKUNIT>妇保所</WORKUNIT></Body></Request>");
        return s;
    }
}
